.class public Lcom/htc/android/footprints/activity/WrapShowOnMapActivity;
.super Lcom/htc/widget/TabSwitchActivity;
.source "WrapShowOnMapActivity.java"


# static fields
.field public static final MENU_FITALL:I = 0x1

.field public static final MENU_MY_LOCATION:I = 0x2

.field public static final MENU_SEARCH:I = 0x3

.field public static final MENU_SHOW_LISTVIEW:I = 0x0

.field private static final TAG:Ljava/lang/String; = "WrapShowOnMapActivity"


# instance fields
.field private curCategory:Lcom/htc/android/footprints/vo/Category;

.field private dbManager:Lcom/htc/android/footprints/provider/FootprintManager;

.field private mActivity:Lcom/htc/android/footprints/activity/ShowOnMapActivity;

.field private mDecorView:Landroid/view/View;

.field private mPanelHost:Lcom/htc/widget/TabSwitchHost;

.field private mStorageUtil:Lcom/htc/android/footprints/utils/StorageUtil;


# direct methods
.method public constructor <init>()V
    .locals 0

    .prologue
    .line 33
    invoke-direct {p0}, Lcom/htc/widget/TabSwitchActivity;-><init>()V

    return-void
.end method

.method static synthetic access$000(Lcom/htc/android/footprints/activity/WrapShowOnMapActivity;)Landroid/view/View;
    .locals 1
    .parameter "x0"

    .prologue
    .line 33
    iget-object v0, p0, Lcom/htc/android/footprints/activity/WrapShowOnMapActivity;->mDecorView:Landroid/view/View;

    return-object v0
.end method

.method static synthetic access$100(Lcom/htc/android/footprints/activity/WrapShowOnMapActivity;)Lcom/htc/android/footprints/activity/ShowOnMapActivity;
    .locals 1
    .parameter "x0"

    .prologue
    .line 33
    iget-object v0, p0, Lcom/htc/android/footprints/activity/WrapShowOnMapActivity;->mActivity:Lcom/htc/android/footprints/activity/ShowOnMapActivity;

    return-object v0
.end method

.method static synthetic access$200(Lcom/htc/android/footprints/activity/WrapShowOnMapActivity;)Lcom/htc/android/footprints/vo/Category;
    .locals 1
    .parameter "x0"

    .prologue
    .line 33
    iget-object v0, p0, Lcom/htc/android/footprints/activity/WrapShowOnMapActivity;->curCategory:Lcom/htc/android/footprints/vo/Category;

    return-object v0
.end method

.method static synthetic access$202(Lcom/htc/android/footprints/activity/WrapShowOnMapActivity;Lcom/htc/android/footprints/vo/Category;)Lcom/htc/android/footprints/vo/Category;
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 33
    iput-object p1, p0, Lcom/htc/android/footprints/activity/WrapShowOnMapActivity;->curCategory:Lcom/htc/android/footprints/vo/Category;

    return-object p1
.end method

.method static synthetic access$300(Lcom/htc/android/footprints/activity/WrapShowOnMapActivity;)Lcom/htc/android/footprints/provider/FootprintManager;
    .locals 1
    .parameter "x0"

    .prologue
    .line 33
    iget-object v0, p0, Lcom/htc/android/footprints/activity/WrapShowOnMapActivity;->dbManager:Lcom/htc/android/footprints/provider/FootprintManager;

    return-object v0
.end method

.method private checkWirelessNetwork()V
    .locals 6

    .prologue
    .line 248
    const/4 v0, 0x0

    .line 249
    .local v0, connected:Z
    const-string v4, "connectivity"

    invoke-virtual {p0, v4}, Lcom/htc/android/footprints/activity/WrapShowOnMapActivity;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/net/ConnectivityManager;

    .line 250
    .local v1, connectivity:Landroid/net/ConnectivityManager;
    if-eqz v1, :cond_0

    .line 251
    invoke-virtual {v1}, Landroid/net/ConnectivityManager;->getActiveNetworkInfo()Landroid/net/NetworkInfo;

    move-result-object v3

    .line 252
    .local v3, info:Landroid/net/NetworkInfo;
    if-eqz v3, :cond_0

    invoke-virtual {v3}, Landroid/net/NetworkInfo;->getState()Landroid/net/NetworkInfo$State;

    move-result-object v4

    sget-object v5, Landroid/net/NetworkInfo$State;->CONNECTED:Landroid/net/NetworkInfo$State;

    if-ne v4, v5, :cond_0

    .line 253
    const/4 v0, 0x1

    .line 256
    .end local v3           #info:Landroid/net/NetworkInfo;
    :cond_0
    if-nez v0, :cond_1

    .line 257
    new-instance v2, Lcom/htc/android/footprints/commonui/HtcDialog;

    invoke-direct {v2, p0}, Lcom/htc/android/footprints/commonui/HtcDialog;-><init>(Landroid/content/Context;)V

    .line 258
    .local v2, hd:Lcom/htc/android/footprints/commonui/HtcDialog;
    invoke-virtual {v2}, Lcom/htc/android/footprints/commonui/HtcDialog;->getWirelessDisabledDialog()Lcom/htc/widget/HtcAlertDialog;

    move-result-object v4

    invoke-virtual {v4}, Lcom/htc/widget/HtcAlertDialog;->show()V

    .line 260
    .end local v2           #hd:Lcom/htc/android/footprints/commonui/HtcDialog;
    :cond_1
    return-void
.end method


# virtual methods
.method public onCreate(Landroid/os/Bundle;)V
    .locals 21
    .parameter "savedInstanceState"

    .prologue
    .line 44
    invoke-super/range {p0 .. p1}, Lcom/htc/widget/TabSwitchActivity;->onCreate(Landroid/os/Bundle;)V

    .line 46
    const/4 v14, 0x1

    move-object/from16 v0, p0

    move v1, v14

    invoke-virtual {v0, v1}, Lcom/htc/android/footprints/activity/WrapShowOnMapActivity;->requestWindowFeature(I)Z

    .line 47
    invoke-virtual/range {p0 .. p0}, Lcom/htc/android/footprints/activity/WrapShowOnMapActivity;->getWindow()Landroid/view/Window;

    move-result-object v14

    const/4 v15, 0x0

    invoke-virtual {v14, v15}, Landroid/view/Window;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 48
    invoke-static/range {p0 .. p0}, Lcom/htc/android/footprints/utils/SettingInfo;->getInstance(Landroid/content/Context;)Lcom/htc/android/footprints/utils/SettingInfo;

    move-result-object v14

    iget-boolean v14, v14, Lcom/htc/android/footprints/utils/SettingInfo;->showConnectionFailedAlert:Z

    if-eqz v14, :cond_0

    .line 49
    invoke-direct/range {p0 .. p0}, Lcom/htc/android/footprints/activity/WrapShowOnMapActivity;->checkWirelessNetwork()V

    .line 51
    :cond_0
    invoke-virtual/range {p0 .. p0}, Lcom/htc/android/footprints/activity/WrapShowOnMapActivity;->getIntent()Landroid/content/Intent;

    move-result-object v9

    .line 54
    .local v9, myIntent:Landroid/content/Intent;
    const v14, 0x7f030027

    move-object/from16 v0, p0

    move v1, v14

    invoke-virtual {v0, v1}, Lcom/htc/android/footprints/activity/WrapShowOnMapActivity;->setContentView(I)V

    .line 55
    invoke-virtual/range {p0 .. p0}, Lcom/htc/android/footprints/activity/WrapShowOnMapActivity;->getTabHost()Lcom/htc/widget/TabSwitchHost;

    move-result-object v14

    move-object v0, v14

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/htc/android/footprints/activity/WrapShowOnMapActivity;->mPanelHost:Lcom/htc/widget/TabSwitchHost;

    .line 56
    invoke-virtual/range {p0 .. p0}, Lcom/htc/android/footprints/activity/WrapShowOnMapActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v11

    .line 58
    .local v11, resource:Landroid/content/res/Resources;
    invoke-virtual/range {p0 .. p0}, Lcom/htc/android/footprints/activity/WrapShowOnMapActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v14

    invoke-static {v14}, Lcom/htc/android/footprints/provider/FootprintManager;->getInstance(Landroid/content/Context;)Lcom/htc/android/footprints/provider/FootprintManager;

    move-result-object v14

    move-object v0, v14

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/htc/android/footprints/activity/WrapShowOnMapActivity;->dbManager:Lcom/htc/android/footprints/provider/FootprintManager;

    .line 59
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/WrapShowOnMapActivity;->dbManager:Lcom/htc/android/footprints/provider/FootprintManager;

    move-object v14, v0

    invoke-virtual {v14}, Lcom/htc/android/footprints/provider/FootprintManager;->getAllCategory()Ljava/util/ArrayList;

    move-result-object v5

    .line 60
    .local v5, cList:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Lcom/htc/android/footprints/vo/Category;>;"
    const/4 v14, 0x0

    invoke-static {}, Lcom/htc/android/footprints/vo/Category;->getAllCategory()Lcom/htc/android/footprints/vo/Category;

    move-result-object v15

    invoke-virtual {v5, v14, v15}, Ljava/util/ArrayList;->add(ILjava/lang/Object;)V

    .line 62
    const-string v14, "tab_index"

    const/4 v15, 0x0

    invoke-virtual {v9, v14, v15}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v10

    .line 64
    .local v10, preTabIndex:I
    new-instance v8, Landroid/content/Intent;

    const-string v14, "com.htc.android.footprints.activity.ShowOnMapActivity"

    invoke-direct {v8, v14}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 67
    .local v8, intent:Landroid/content/Intent;
    const-string v14, "display"

    const-string v15, "display"

    invoke-virtual {v9, v15}, Landroid/content/Intent;->getParcelableArrayListExtra(Ljava/lang/String;)Ljava/util/ArrayList;

    move-result-object v15

    invoke-virtual {v8, v14, v15}, Landroid/content/Intent;->putParcelableArrayListExtra(Ljava/lang/String;Ljava/util/ArrayList;)Landroid/content/Intent;

    .line 71
    const-string v14, "target"

    invoke-virtual {v9, v14}, Landroid/content/Intent;->getParcelableExtra(Ljava/lang/String;)Landroid/os/Parcelable;

    move-result-object v13

    check-cast v13, Lcom/htc/android/footprints/vo/Footprint;

    .line 72
    .local v13, targetFootprint:Lcom/htc/android/footprints/vo/Footprint;
    if-eqz v13, :cond_1

    .line 73
    new-instance v6, Lcom/htc/android/footprints/vo/Category;

    invoke-direct {v6}, Lcom/htc/android/footprints/vo/Category;-><init>()V

    .line 74
    .local v6, category:Lcom/htc/android/footprints/vo/Category;
    iget-object v14, v13, Lcom/htc/android/footprints/vo/Footprint;->mCategory:Ljava/lang/String;

    iput-object v14, v6, Lcom/htc/android/footprints/vo/Category;->mKeyword:Ljava/lang/String;

    .line 75
    invoke-virtual {v5, v6}, Ljava/util/ArrayList;->indexOf(Ljava/lang/Object;)I

    move-result v10

    .line 77
    .end local v6           #category:Lcom/htc/android/footprints/vo/Category;
    :cond_1
    invoke-virtual {v5, v10}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v12

    check-cast v12, Lcom/htc/android/footprints/vo/Category;

    .line 78
    .local v12, targetCategory:Lcom/htc/android/footprints/vo/Category;
    const-string v14, "category"

    invoke-virtual {v8, v14, v12}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;

    .line 80
    invoke-virtual/range {p0 .. p0}, Lcom/htc/android/footprints/activity/WrapShowOnMapActivity;->getLocalActivityManager()Landroid/app/LocalActivityManager;

    move-result-object v14

    const-string v15, "ShowOnMapActivity"

    invoke-virtual {v14, v15, v8}, Landroid/app/LocalActivityManager;->startActivity(Ljava/lang/String;Landroid/content/Intent;)Landroid/view/Window;

    move-result-object v14

    invoke-virtual {v14}, Landroid/view/Window;->getDecorView()Landroid/view/View;

    move-result-object v14

    move-object v0, v14

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/htc/android/footprints/activity/WrapShowOnMapActivity;->mDecorView:Landroid/view/View;

    .line 82
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/WrapShowOnMapActivity;->mLocalActivityManager:Landroid/app/LocalActivityManager;

    move-object v14, v0

    invoke-virtual {v14}, Landroid/app/LocalActivityManager;->getCurrentActivity()Landroid/app/Activity;

    move-result-object p1

    .end local p1
    check-cast p1, Lcom/htc/android/footprints/activity/ShowOnMapActivity;

    move-object/from16 v0, p1

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/htc/android/footprints/activity/WrapShowOnMapActivity;->mActivity:Lcom/htc/android/footprints/activity/ShowOnMapActivity;

    .line 87
    invoke-virtual {v5}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v7

    .local v7, i$:Ljava/util/Iterator;
    :goto_0
    invoke-interface {v7}, Ljava/util/Iterator;->hasNext()Z

    move-result v14

    if-eqz v14, :cond_2

    invoke-interface {v7}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Lcom/htc/android/footprints/vo/Category;

    .line 89
    .local v4, c:Lcom/htc/android/footprints/vo/Category;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/WrapShowOnMapActivity;->mPanelHost:Lcom/htc/widget/TabSwitchHost;

    move-object v14, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/WrapShowOnMapActivity;->mPanelHost:Lcom/htc/widget/TabSwitchHost;

    move-object v15, v0

    move-object v0, v4

    iget-object v0, v0, Lcom/htc/android/footprints/vo/Category;->mKeyword:Ljava/lang/String;

    move-object/from16 v16, v0

    invoke-virtual/range {v15 .. v16}, Lcom/htc/widget/TabSwitchHost;->newTabSpec(Ljava/lang/String;)Lcom/htc/widget/TabSwitchHost$TabSpec;

    move-result-object v15

    move-object v0, v4

    iget-object v0, v0, Lcom/htc/android/footprints/vo/Category;->mName:Ljava/lang/String;

    move-object/from16 v16, v0

    invoke-virtual/range {p0 .. p0}, Lcom/htc/android/footprints/activity/WrapShowOnMapActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v17

    move-object v0, v4

    iget-object v0, v0, Lcom/htc/android/footprints/vo/Category;->mKeyword:Ljava/lang/String;

    move-object/from16 v18, v0

    invoke-static/range {v17 .. v18}, Lcom/htc/android/footprints/utils/FootprintUtils;->getTabCategoryIcon(Landroid/content/Context;Ljava/lang/String;)Landroid/graphics/drawable/Drawable;

    move-result-object v17

    invoke-virtual/range {p0 .. p0}, Lcom/htc/android/footprints/activity/WrapShowOnMapActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v18

    move-object v0, v4

    iget-object v0, v0, Lcom/htc/android/footprints/vo/Category;->mKeyword:Ljava/lang/String;

    move-object/from16 v19, v0

    invoke-static/range {v18 .. v19}, Lcom/htc/android/footprints/utils/FootprintUtils;->getInverseCategory(Landroid/content/Context;Ljava/lang/String;)Landroid/graphics/drawable/Drawable;

    move-result-object v18

    invoke-virtual/range {p0 .. p0}, Lcom/htc/android/footprints/activity/WrapShowOnMapActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v19

    move-object v0, v4

    iget-object v0, v0, Lcom/htc/android/footprints/vo/Category;->mKeyword:Ljava/lang/String;

    move-object/from16 v20, v0

    invoke-static/range {v19 .. v20}, Lcom/htc/android/footprints/utils/FootprintUtils;->getCategoryOverlayIcon(Landroid/content/Context;Ljava/lang/String;)Landroid/graphics/drawable/Drawable;

    move-result-object v19

    invoke-virtual/range {v15 .. v19}, Lcom/htc/widget/TabSwitchHost$TabSpec;->setIndicator(Ljava/lang/CharSequence;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)Lcom/htc/widget/TabSwitchHost$TabSpec;

    move-result-object v15

    new-instance v16, Lcom/htc/android/footprints/activity/WrapShowOnMapActivity$1;

    move-object/from16 v0, v16

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Lcom/htc/android/footprints/activity/WrapShowOnMapActivity$1;-><init>(Lcom/htc/android/footprints/activity/WrapShowOnMapActivity;)V

    invoke-virtual/range {v15 .. v16}, Lcom/htc/widget/TabSwitchHost$TabSpec;->setContent(Lcom/htc/widget/TabSwitchHost$TabContentFactory;)Lcom/htc/widget/TabSwitchHost$TabSpec;

    move-result-object v15

    invoke-virtual {v14, v15}, Lcom/htc/widget/TabSwitchHost;->addTab(Lcom/htc/widget/TabSwitchHost$TabSpec;)V

    goto :goto_0

    .line 107
    .end local v4           #c:Lcom/htc/android/footprints/vo/Category;
    :cond_2
    if-eqz v13, :cond_3

    .line 108
    new-instance v14, Landroid/os/Handler;

    invoke-direct {v14}, Landroid/os/Handler;-><init>()V

    new-instance v15, Lcom/htc/android/footprints/activity/WrapShowOnMapActivity$2;

    move-object v0, v15

    move-object/from16 v1, p0

    move-object v2, v13

    move-object v3, v12

    invoke-direct {v0, v1, v2, v3}, Lcom/htc/android/footprints/activity/WrapShowOnMapActivity$2;-><init>(Lcom/htc/android/footprints/activity/WrapShowOnMapActivity;Lcom/htc/android/footprints/vo/Footprint;Lcom/htc/android/footprints/vo/Category;)V

    const-wide/16 v16, 0x258

    invoke-virtual/range {v14 .. v17}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 117
    :cond_3
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/WrapShowOnMapActivity;->mPanelHost:Lcom/htc/widget/TabSwitchHost;

    move-object v14, v0

    invoke-virtual {v14, v10}, Lcom/htc/widget/TabSwitchHost;->setCurrentTab(I)V

    .line 118
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/WrapShowOnMapActivity;->mPanelHost:Lcom/htc/widget/TabSwitchHost;

    move-object v14, v0

    const/4 v15, 0x1

    invoke-virtual {v14, v15}, Lcom/htc/widget/TabSwitchHost;->setTabHintEnabled(Z)V

    .line 120
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/WrapShowOnMapActivity;->mPanelHost:Lcom/htc/widget/TabSwitchHost;

    move-object v14, v0

    new-instance v15, Lcom/htc/android/footprints/activity/WrapShowOnMapActivity$3;

    move-object v0, v15

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Lcom/htc/android/footprints/activity/WrapShowOnMapActivity$3;-><init>(Lcom/htc/android/footprints/activity/WrapShowOnMapActivity;)V

    invoke-virtual {v14, v15}, Lcom/htc/widget/TabSwitchHost;->setOnTabChangedListener(Lcom/htc/widget/TabSwitchHost$OnTabChangeListener;)V

    .line 136
    new-instance v14, Lcom/htc/android/footprints/utils/StorageUtil;

    invoke-virtual/range {p0 .. p0}, Lcom/htc/android/footprints/activity/WrapShowOnMapActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v15

    invoke-direct {v14, v15}, Lcom/htc/android/footprints/utils/StorageUtil;-><init>(Landroid/content/Context;)V

    move-object v0, v14

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/htc/android/footprints/activity/WrapShowOnMapActivity;->mStorageUtil:Lcom/htc/android/footprints/utils/StorageUtil;

    .line 137
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/WrapShowOnMapActivity;->mStorageUtil:Lcom/htc/android/footprints/utils/StorageUtil;

    move-object v14, v0

    new-instance v15, Lcom/htc/android/footprints/activity/WrapShowOnMapActivity$4;

    move-object v0, v15

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Lcom/htc/android/footprints/activity/WrapShowOnMapActivity$4;-><init>(Lcom/htc/android/footprints/activity/WrapShowOnMapActivity;)V

    invoke-virtual {v14, v15}, Lcom/htc/android/footprints/utils/StorageUtil;->SetOnChangeStorageListerner(Lcom/htc/android/footprints/utils/StorageUtil$OnChangeStorageListener;)V

    .line 145
    return-void
.end method

.method public onCreateOptionsMenu(Landroid/view/Menu;)Z
    .locals 5
    .parameter "menu"

    .prologue
    const/4 v4, 0x2

    const/4 v3, 0x1

    const/4 v2, 0x0

    .line 199
    const v0, 0x7f0a0059

    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/activity/WrapShowOnMapActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-interface {p1, v2, v2, v2, v0}, Landroid/view/Menu;->add(IIILjava/lang/CharSequence;)Landroid/view/MenuItem;

    move-result-object v0

    const v1, 0x7f0200e0

    invoke-interface {v0, v1}, Landroid/view/MenuItem;->setIcon(I)Landroid/view/MenuItem;

    .line 203
    const v0, 0x7f0a0057

    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/activity/WrapShowOnMapActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-interface {p1, v2, v3, v3, v0}, Landroid/view/Menu;->add(IIILjava/lang/CharSequence;)Landroid/view/MenuItem;

    move-result-object v0

    const v1, 0x7f0200e1

    invoke-interface {v0, v1}, Landroid/view/MenuItem;->setIcon(I)Landroid/view/MenuItem;

    .line 207
    const v0, 0x7f0a00aa

    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/activity/WrapShowOnMapActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-interface {p1, v2, v4, v4, v0}, Landroid/view/Menu;->add(IIILjava/lang/CharSequence;)Landroid/view/MenuItem;

    move-result-object v0

    const v1, 0x7f0200e2

    invoke-interface {v0, v1}, Landroid/view/MenuItem;->setIcon(I)Landroid/view/MenuItem;

    .line 211
    return v3
.end method

.method public onDestroy()V
    .locals 2

    .prologue
    const/4 v1, 0x0

    .line 167
    iput-object v1, p0, Lcom/htc/android/footprints/activity/WrapShowOnMapActivity;->mDecorView:Landroid/view/View;

    .line 168
    iget-object v0, p0, Lcom/htc/android/footprints/activity/WrapShowOnMapActivity;->mActivity:Lcom/htc/android/footprints/activity/ShowOnMapActivity;

    invoke-virtual {v0}, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->finish()V

    .line 169
    iput-object v1, p0, Lcom/htc/android/footprints/activity/WrapShowOnMapActivity;->mActivity:Lcom/htc/android/footprints/activity/ShowOnMapActivity;

    .line 170
    iget-object v0, p0, Lcom/htc/android/footprints/activity/WrapShowOnMapActivity;->mPanelHost:Lcom/htc/widget/TabSwitchHost;

    invoke-virtual {v0}, Lcom/htc/widget/TabSwitchHost;->clearAllTabs()V

    .line 171
    iget-object v0, p0, Lcom/htc/android/footprints/activity/WrapShowOnMapActivity;->mPanelHost:Lcom/htc/widget/TabSwitchHost;

    invoke-virtual {v0, v1}, Lcom/htc/widget/TabSwitchHost;->setOnTabChangedListener(Lcom/htc/widget/TabSwitchHost$OnTabChangeListener;)V

    .line 172
    iget-object v0, p0, Lcom/htc/android/footprints/activity/WrapShowOnMapActivity;->mPanelHost:Lcom/htc/widget/TabSwitchHost;

    invoke-virtual {v0}, Lcom/htc/widget/TabSwitchHost;->removeAllViews()V

    .line 173
    iput-object v1, p0, Lcom/htc/android/footprints/activity/WrapShowOnMapActivity;->mPanelHost:Lcom/htc/widget/TabSwitchHost;

    .line 174
    iput-object v1, p0, Lcom/htc/android/footprints/activity/WrapShowOnMapActivity;->mStorageUtil:Lcom/htc/android/footprints/utils/StorageUtil;

    .line 175
    iput-object v1, p0, Lcom/htc/android/footprints/activity/WrapShowOnMapActivity;->dbManager:Lcom/htc/android/footprints/provider/FootprintManager;

    .line 176
    invoke-super {p0}, Lcom/htc/widget/TabSwitchActivity;->onDestroy()V

    .line 177
    return-void
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 3
    .parameter "keyCode"
    .parameter "event"

    .prologue
    .line 180
    const/16 v1, 0x54

    if-ne p1, v1, :cond_1

    .line 181
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/htc/android/footprints/activity/SearchActivity;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 182
    .local v0, intent:Landroid/content/Intent;
    iget-object v1, p0, Lcom/htc/android/footprints/activity/WrapShowOnMapActivity;->curCategory:Lcom/htc/android/footprints/vo/Category;

    if-eqz v1, :cond_0

    .line 183
    const-string v1, "EXTRA_CATEGORY"

    iget-object v2, p0, Lcom/htc/android/footprints/activity/WrapShowOnMapActivity;->curCategory:Lcom/htc/android/footprints/vo/Category;

    iget-object v2, v2, Lcom/htc/android/footprints/vo/Category;->mKeyword:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 185
    :cond_0
    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/activity/WrapShowOnMapActivity;->startActivity(Landroid/content/Intent;)V

    .line 186
    const/4 v1, 0x1

    .line 188
    .end local v0           #intent:Landroid/content/Intent;
    :goto_0
    return v1

    :cond_1
    invoke-super {p0, p1, p2}, Lcom/htc/widget/TabSwitchActivity;->onKeyDown(ILandroid/view/KeyEvent;)Z

    move-result v1

    goto :goto_0
.end method

.method public onOptionsItemSelected(Landroid/view/MenuItem;)Z
    .locals 3
    .parameter "item"

    .prologue
    .line 221
    invoke-interface {p1}, Landroid/view/MenuItem;->getItemId()I

    move-result v1

    packed-switch v1, :pswitch_data_0

    .line 242
    :goto_0
    const/4 v1, 0x1

    return v1

    .line 223
    :pswitch_0
    new-instance v0, Landroid/content/Intent;

    const-string v1, "com.htc.android.footprints.ListModeActivity"

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 225
    .local v0, intent:Landroid/content/Intent;
    const/high16 v1, 0x40

    invoke-virtual {v0, v1}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    .line 226
    const/high16 v1, 0x400

    invoke-virtual {v0, v1}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    .line 227
    const-string v1, "CATEGORY"

    iget-object v2, p0, Lcom/htc/android/footprints/activity/WrapShowOnMapActivity;->curCategory:Lcom/htc/android/footprints/vo/Category;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;

    .line 228
    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/activity/WrapShowOnMapActivity;->startActivity(Landroid/content/Intent;)V

    goto :goto_0

    .line 232
    .end local v0           #intent:Landroid/content/Intent;
    :pswitch_1
    iget-object v1, p0, Lcom/htc/android/footprints/activity/WrapShowOnMapActivity;->mActivity:Lcom/htc/android/footprints/activity/ShowOnMapActivity;

    invoke-virtual {v1}, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->fitAll()V

    goto :goto_0

    .line 235
    :pswitch_2
    iget-object v1, p0, Lcom/htc/android/footprints/activity/WrapShowOnMapActivity;->mActivity:Lcom/htc/android/footprints/activity/ShowOnMapActivity;

    invoke-virtual {v1}, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->showMyLocation()V

    goto :goto_0

    .line 221
    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_1
        :pswitch_2
    .end packed-switch
.end method

.method protected onPause()V
    .locals 1

    .prologue
    .line 158
    invoke-super {p0}, Lcom/htc/widget/TabSwitchActivity;->onPause()V

    .line 159
    iget-object v0, p0, Lcom/htc/android/footprints/activity/WrapShowOnMapActivity;->mStorageUtil:Lcom/htc/android/footprints/utils/StorageUtil;

    if-eqz v0, :cond_0

    .line 160
    iget-object v0, p0, Lcom/htc/android/footprints/activity/WrapShowOnMapActivity;->mStorageUtil:Lcom/htc/android/footprints/utils/StorageUtil;

    invoke-virtual {v0}, Lcom/htc/android/footprints/utils/StorageUtil;->closeStorgaeUtil()V

    .line 163
    :cond_0
    return-void
.end method

.method public onPrepareOptionsMenu(Landroid/view/Menu;)Z
    .locals 3
    .parameter "menu"

    .prologue
    const/4 v2, 0x1

    .line 215
    invoke-interface {p1, v2}, Landroid/view/Menu;->getItem(I)Landroid/view/MenuItem;

    move-result-object v0

    iget-object v1, p0, Lcom/htc/android/footprints/activity/WrapShowOnMapActivity;->mActivity:Lcom/htc/android/footprints/activity/ShowOnMapActivity;

    invoke-virtual {v1}, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->isEmpty()Z

    move-result v1

    invoke-interface {v0, v1}, Landroid/view/MenuItem;->setEnabled(Z)Landroid/view/MenuItem;

    .line 216
    return v2
.end method

.method protected onResume()V
    .locals 1

    .prologue
    .line 149
    invoke-super {p0}, Lcom/htc/widget/TabSwitchActivity;->onResume()V

    .line 151
    iget-object v0, p0, Lcom/htc/android/footprints/activity/WrapShowOnMapActivity;->mStorageUtil:Lcom/htc/android/footprints/utils/StorageUtil;

    if-eqz v0, :cond_0

    .line 152
    iget-object v0, p0, Lcom/htc/android/footprints/activity/WrapShowOnMapActivity;->mStorageUtil:Lcom/htc/android/footprints/utils/StorageUtil;

    invoke-virtual {v0}, Lcom/htc/android/footprints/utils/StorageUtil;->startStorageUtil()V

    .line 154
    :cond_0
    return-void
.end method
